package com.sxpi.order;

import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @Author: 董伟豪
 * @Date: 2022/10/25 19:29
 */
@SpringBootApplication
// 开发服务注册
@EnableDiscoveryClient
// 开启feign支持
@EnableFeignClients
// 开启lcn分布式事务注解
// @EnableDistributedTransaction
// 开启异步支持
@EnableAsync
public class OrderAppWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderAppWebApplication.class,args);
    }
}
